<!DOCTYPE html>
<html lang="en">
<head>
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta charset="UTF-8">
		<title>佣金转入钱包</title>
		<link rel="stylesheet" type="text/css" href="__STATIC__/home/css/reset.css">
		<script src="__STATIC__/home/js/base.js"></script>
		<link rel="stylesheet" href="__STATIC__/home/css/myyj.css">
	</head>
<body>
	<div class="tx">
		<img src="__STATIC__/img/{$user['user_pic']}" alt="">
	</div>
	<div class="info">
		<p class="name">{$user['name']}</p>
		<p class="ye">剩余佣金<span>{$user['rebate']}</span></p>
	</div>
	<div class="sr">
		<h4>转入金额</h4>
		<div>
			<span>￥</span>
			<input id="money" type="number">
		</div>
	</div>
	<button class="btn">确认转入</button>
</body>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script>
	$('.btn').click(function(){
		var money = $("#money").val();
		if(money){
			$.post("",{money:money},function(data){
				alert(data.msg);
				if(data.err == 1){
					$(".ye").find('span').text(data.money);
					$("#money").val('');
				}
			})
		}else{
			alert("请先输入金额！");
		}
	})
</script>
</html>